package com.azxc.rapid.resource.feign;

import com.azxc.rapid.core.oss.model.RapidFile;
import com.azxc.rapid.core.tool.api.R;
import com.azxc.rapid.resource.entity.Attach;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;


@Component
public class IAttachClientFallback implements IAttachClient {

	@Override
	public R<Attach> getAttachById(Long id) {
		return R.fail("获取附件失败");
	}

	@Override
	public R<Attach> getSourceAttachById(Long id) { return R.fail("获取附件失败");	}

	@Override
	public R<RapidFile> putFile(MultipartFile file) {
		return R.fail("上传附件失败");
	}

	@Override
	public R<RapidFile> putBase64(String fileName, String key){
		return R.fail("上传附件失败");
	}

	@Override
	public R<RapidFile> unLoginPutFile(MultipartFile file){
		return R.fail("上传附件失败");
	}

}
